<script type="text/javascript" src="modules/InnoForum/pnjavascript/wz_tooltip.js"></script>
  <!--[if $pagetype neq 'home']-->
  <div class="grid_23">
    <a href="<!--[pngetbaseurl]-->" >
      <strong><!--[pnml name='_ANDREAS08_HOME']--></strong>
    </a><img src="<!--[modulepath]-->/pnimages/link.png" width="16px" height="16px" align='absmiddle'/>
    <a href="<!--[pnmodurl modname='InnoForum' func='list' ctrl='topics' ]-->" >
      <strong><!--[pnml name='_INNOFORUM_USER_ViewAllTopic']--></strong>
    </a>
  <!--[if not empty($smarty.get.user_id)]-->
    <!--[assign_set_user_id assign="&user_id" key=$smarty.get.user_id]-->
    <img src="<!--[modulepath]-->/pnimages/link.png" width="16px" height="16px" align='absmiddle'/>
    <a href="<!--[pnmodurl modname='InnoForum' func='list' ctrl='topics' user_id=$smarty.get.user_id]-->" title="<!--[pnml name='_INNOFORUM_USER_LIST_TOPICS_MyallTopic']-->&nbsp;<!--[$extendResult.user._UREALNAME]-->">
      <strong><!--[$extendResult.user._UREALNAME]--></strong>
    </a>
  <!--[/if]-->

  <!--[if not empty($smarty.get.type_id)]-->
    <!--[assign_set_type_id assign="&type_id" key=$smarty.get.type_id]-->
    <img src="<!--[modulepath]-->/pnimages/link.png" width="16px" height="16px" align='absmiddle'/>
    <a href="<!--[pnmodurl modname='InnoForum' func='list' ctrl='topics' type_id=$smarty.get.type_id ]-->" title="<!--[pnml name='_INNOFORUM_USER_LIST_TOPICS_TYPEGO']-->&nbsp;<!--[get_topic_type type_id=$smarty.get.type_id]-->">
      <strong><!--[get_topic_type type_id=$smarty.get.type_id]--></strong>
    </a>
  <!--[/if]-->

  <!--[if not empty($smarty.get.category_id)]-->
    <img src="<!--[modulepath]-->/pnimages/link.png" width="16px" height="16px" align='absmiddle'/>
    <a href="<!--[pnmodurl modname='InnoForum' func='list' ctrl='topics' category_id=$smarty.get.category_id ]-->" 
    title="<!--[pnml name='_INNOFORUM_USER_LIST_TOPICS_SUBCATGO']-->&nbsp;<!--[$extendResult.category_name]-->">
      <strong><!--[get_category_by_id id=$smarty.get.category_id]--><!--[$categoryName]--></strong>
    </a>
  <!--[/if]-->

  <!--[if not empty($smarty.get.subcategory_id)]-->
    <img src="<!--[modulepath]-->/pnimages/link.png" width="16px" height="16px" align='absmiddle'/>
    <a href="<!--[pnmodurl modname='InnoForum' func='list' ctrl='topics' category_id=$smarty.get.category_id subcategory_id=$smarty.get.subcategory_id ]-->" 
       title="<!--[pnml name='_INNOFORUM_USER_LIST_TOPICS_SUBCATGO']-->&nbsp;<!--[$extendResult.subcategory_name]-->"
    >
      <strong><!--[get_subcategory_by_id subcategory_id=$smarty.get.subcategory_id]--><!--[$subcategory_name]--></strong>
    </a>
  <!--[/if]-->

  <!--[if not empty($smarty.get.brand_id)]-->
    <!--[get_brand_by_id id=$smarty.get.brand_id]-->
    <img src="<!--[modulepath]-->/pnimages/link.png" width="16px" height="16px" align='absmiddle'/>
    <a href="<!--[pnmodurl modname='InnoForum' 
                            func='list' 
                            ctrl='topics' 
                            category_id=$smarty.get.category_id 
                            subcategory_id=$smarty.get.subcategory_id 
                            brand_id=$smarty.get.brand_id 
             ]-->" 
       title="<!--[$brandName]-->"
    >
      <strong><!--[$brandName]--></strong>
    </a>
  <!--[/if]-->

  <!--[if not empty($smarty.get.model_id)]-->
    <!--[get_model_by_id id=$smarty.get.model_id]-->
    <img src="<!--[modulepath]-->/pnimages/link.png" width="16px" height="16px" align='absmiddle'/>
    <a href="<!--[pnmodurl modname='InnoForum' 
                            func='list' 
                            ctrl='topics' 
                            category_id=$smarty.get.category_id 
                            subcategory_id=$smarty.get.subcategory_id 
                            brand_id=$smarty.get.brand_id 
                            model_id=$smarty.get.model_id 
             ]-->" 
       title="<!--[$modelName]-->"
    >
      <strong><!--[$modelName]--></strong>
    </a>
  <!--[/if]-->

  <!--[if not empty($smarty.get.carproperty_id)]-->
    <img src="<!--[modulepath]-->/pnimages/link.png" width="16px" height="16px" align='absmiddle'/>
    <!--[get_carproperty_by_id id=$smarty.get.carproperty_id]-->
    <a href="<!--[pnmodurl modname='InnoForum' 
                            func='list' 
                            ctrl='topics' 
                            category_id=$smarty.get.category_id 
                            subcategory_id=$smarty.get.subcategory_id 
                            carproperty_id=$smarty.get.carproperty_id 
             ]-->" 
       title="<!--[$carpropertyName]-->"
    >
      <strong><!--[$carpropertyName]--></strong>
    </a>
  <!--[/if]-->

  <hr />
</div>
<div class="clear"></div> 
<div class="grid_16 alpha" style="overflow-x:hidden">

<br />
<div style="width:99%">
				<!--[innopager  show=page												
                								img_prev="modules/InnoForum/pnimages/back.png"
												img_next="modules/InnoForum/pnimages/next.png"
												rowcount=$pager.numitems 
												limit=$pager.itemsperpage 
												posvar=startnum 
												shift=0
												request_uri=$smarty.server.REQUEST_URI						
												
				]-->
</div>
<table width="99%" cellpadding="5px" cellspacing="0px" style="background-color:#FFFFFF; border:1px solid #CCCCCC; border-top:0px; border-bottom:0px; text-align:left;">
  <tr>
    <td>
    <form name="form1" id="form1">
      <img src="<!--[modulepath]-->/pnimages/text_linespacing.png" width="16px" height="16px" align="absmiddle" alt="<!--[pnml name='_INNOFORUM_USER_LIST_TOPICS_Order']-->"/>
      <select name="menu1" onchange="MM_jumpMenu('parent',this,0)">
        <option value="<!--[ypgetcurrenturl query='order=']-->" <!--[selected cmp_value=$_GET.order obj_value='']--> ><!--[pnml name='_INNOFORUM_USER_LIST_TOPICS_Auto']--></option>
        <option value="<!--[ypgetcurrenturl query='order=date']-->" <!--[selected cmp_value=$_GET.order obj_value='date']--> ><!--[pnml name='_INNOFORUM_USER_LIST_TOPICS_ByDatePost']--></option>
        <option value="<!--[ypgetcurrenturl query='order=title']-->" <!--[selected cmp_value=$_GET.order obj_value='title']--> ><!--[pnml name='_INNOFORUM_USER_LIST_TOPICS_ByName']--></option>
        <option value="<!--[ypgetcurrenturl query='order=view']-->" <!--[selected cmp_value=$_GET.order obj_value='view']--> ><!--[pnml name='_INNOFORUM_USER_LIST_TOPICS_ByView']--></option>
        <option value="<!--[ypgetcurrenturl query='order=post']-->" <!--[selected cmp_value=$_GET.order obj_value='post']--> ><!--[pnml name='_INNOFORUM_USER_LIST_TOPICS_ByReply']--></option>
      </select>
    </form>
    </td>
    <td align="right">     
      <!--[ include file='inc_search_topics.htm' ]-->


    </td>
  </tr>
  <tr class="blue_header">
    <td>
      <h1 class="text_hblue"><!--[pnml name='_INNOFORUM_USER_Topic']-->&nbsp;<!--[if not empty($smarty.get.subcategory_id)]--><!--[$extendResult.subcategory_name]-->&nbsp;<!--[elseif not empty($smarty.get.category_id)]--><!--[$extendResult.category_name]-->&nbsp;<!--[/if]--><!--[if not empty($smarty.get.type_id)]--><!--[get_topic_type type_id=$smarty.get.type_id]-->&nbsp;<!--[/if]--><!--[if not empty($smarty.get.user_id)]--><!--[pnml name='_INNOFORUM_USER_Owner']-->&nbsp;<!--[$extendResult.user._UREALNAME]-->&nbsp;<!--[/if]--></h1>
    </td><td align="right">
      <script type="text/javascript">
        var fontSize = 1;
        function zoomIn() {
          fontSize += 0.1;
          document.getElementById("zoom").style.fontSize = fontSize + "em";
        }
        function zoomOut() {
          fontSize -= 0.1;
          document.getElementById("zoom").style.fontSize = fontSize + "em";
        }
      </script>
      <script type="text/javascript">
        function MM_jumpMenu(targ,selObj,restore){ //v3.0
          eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
          if (restore) selObj.selectedIndex=0;
        }
      </script>
      ขนาดตัวอักษร&nbsp;
      <input type="image" src="<!--[modulepath]-->/pnimages/zoom_out.png" name="zoom out" width="16px" height="16px" onClick="zoomOut()"/>
      <input type="image" src="<!--[modulepath]-->/pnimages/zoom_in.png" name="zoom in" width="16px" height="16px" onClick="zoomIn()"/>
    </td>
  </tr>
  <tr>
    <td colspan="2">
<!--[else]-->
<!--[/if]-->
<!-- Template -->
<table id="zoom" width="100%">   

  <!--[foreach from=$objectArray item=item]-->
    <!--[assign_val assign="item_id" key=$item.id]-->
    <!--[check_image_directory_path id=$item.id]-->
    <!--[assign_scan_firstimage assign="fstimage" key=$medium_directory_path]-->
    <!--[get_gid_by_uid uid=$item.cr_uid]-->
    <tr>
      <td>
        <table width="100%" <!--[if $gid eq '2' || $gid eq '6']-->style="background:url(<!--[modulepath]-->/pnimages/gold-badge.png) no-repeat 410px 10px; border-bottom:1px dashed #aaa"<!--[elseif $gid eq '5']-->style="background:url(<!--[modulepath]-->/pnimages/silver-badge.png) no-repeat 410px 10px; border-bottom:1px dashed #aaa"<!--[else]-->style="border-bottom:1px dashed #aaa"<!--[/if]-->>       
          <tr valign="top">
            <td rowspan="3" width="110px" align="center">
              <!--[if $item.has_image]-->
                <a class="image_border" target="_blank" href="<!--[pnmodurl modname='InnoForum' func='list' ctrl='posts' id=$item.id]-->" onmouseover="Tip('<img src=\'<!--[$large_directory_path]-->/<!--[if $item.firstimage]--><!--[$item.firstimage]--><!--[else]--><!--[$fstimage]--><!--[/if]-->\' width=\'450\'/>')" onmouseout="UnTip()">
                  <!--[if $item.firstimage]-->
                    <img src="<!--[$medium_directory_path]--><!--[$item.firstimage]-->" width="100px" height="75px" alt="<!--[$item.title]-->"/>
                  <!--[else]-->
                    <!--[if $fstimage]-->
                      <img src="<!--[$medium_directory_path]--><!--[$fstimage]-->" width="100px" height="75px" alt="<!--[$item.title]-->"/>
                    <!--[else]-->
                      <img src="images/no_image80.jpg" width="100px" height="75px" alt="ไม่มีรูป"/>
                    <!--[/if]-->
                  <!--[/if]-->
                </a>
              <!--[else]-->
                <img src="images/no_image80.jpg" width="100px" height="75px" alt="ไม่มีรูป"/>
              <!--[/if]-->
              <br /><img src="<!--[modulepath]-->/pnimages/key.png" width="16px" height="16px" align="absmiddle" alt="รหัส"  title="รหัส"/>
              <font color="#333333"><!--[$item.ref_id]--></font>
            </td>
            <td colspan="2" width="auto">
              <!--[if $item.status eq 'T']--><img width="16px" height="16px" src="<!--[modulepath]-->/pnimages/rosette.png" align="absmiddle" alt="ประกาศแนะนำ" title="แนะนำ"/>
              <!--[/if]--> 
                <font class="text_13">                
                  <a target="_blank" href="<!--[pnmodurl modname='InnoForum' func='list' ctrl='posts' id=$item.id]-->">
                    <!--[$item.title|mb_truncate:80:"..."]-->
                  </a>
                </font>            
              <!--[if $item.is_new eq 'T']--><img width="28px" height="11px" src="<!--[modulepath]-->/pnimages/New_icons_32.gif" align="absmiddle" alt="ประกาศใหม่">
              <!--[/if]-->
              <!--[if $item.update_icon eq '1']--><img width="47px" height="10px" src="<!--[modulepath]-->/pnimages/animate_update.gif" align="absmiddle" alt="ข้อมูลเพิ่มเติม"/>
              <!--[/if]-->
              <!--[if $item.onsale eq '1']--><img width="51px" height="16px" src="<!--[modulepath]-->/pnimages/onsale.gif" align="absmiddle" alt="ลดราคาสุดๆ"/>
              <!--[/if]-->
              <br />
              <!--[if $item.price_detail]-->
                <!--[$item.price_detail|mb_truncate:100:"..."]--><br />
              <!--[else]-->
                <!--[if is_numeric($item.price)]-->                               
                    <!--[if $item.price eq '0' ]-->
                      <!--[pnml name='_INNOFORUM_USER_NoPrice']--><br />
                    <!--[else]-->             
                      <!--[get_topic_type type_id=$item.type_id]-->&nbsp;<!--[$item.price|number_format:0]-->&nbsp;<!--[pnml name='_INNOFORUM_USER_Baht']--><br />
                    <!--[/if]-->  
                <!--[else]-->
                  <!--[$item.price|mb_truncate:100:"..."]--><br />
                <!--[/if]-->                  
              <!--[/if]-->
            </td>
            <td rowspan="2" colspan="2" class="text_13 text_dgray text_center" width="115px" style="border-left:solid #eee 1px">
				<span class="price_product">
                <!--[if  is_numeric($item.price)]-->
                  <!--[if $item.price eq '0' ]-->                    
                    <!--[pnml name='_INNOFORUM_USER_NoPrice']--><br />
                  <!--[else]-->             
                    <!--[$item.price|number_format:0]-->-<br />
                  <!--[/if]-->  
                <!--[else]-->
                  <!--[$item.price|mb_truncate:13:"..."]-->-<br />
                <!--[/if]-->
                </span>
            </td>
            <!--[if $user.uid eq '58']-->
            <td rowspan="3" width="16px" style="border-left:solid #eee 1px">
              <a target="_blank" href="<!--[pnmodurl modname='InnoForum' func='form' ctrl='Topics' id=$item.id uid=$user.uid]-->" title="<!--[pnml name='_INNOFORUM_ADMIN_LIST_TOPICS_EDIT']-->">
                <img src="<!--[modulepath]-->/pnimages/pencil.png" />
              </a>
              <br />
              <a href="<!--[pnmodurl modname='InnoForum' func='delete' ctrl='Topics' id=$item.id uid=$user.uid]-->" title="<!--[pnml name='_INNOFORUM_ADMIN_LIST_TOPICS_DEL']-->" onclick="return confirm('Are you sure you want to delete?')">
                <img src="<!--[modulepath]-->/pnimages/delete.png" />
               </a>
            </td>
            <!--[/if]-->
          </tr>
          <tr class="text_9 text_dgray" valign="bottom">
            <td colspan="2" width="auto">
              <img src="<!--[modulepath]-->/pnimages/sitemap_color.png" width="16px" height="16px" align="absmiddle" alt="หมวดหมู่และประเภท"/><!--[getcategory_by_topic_id topic_id=$item.id]-->
              <a href="<!--[pnmodurl modname='InnoForum' func='list' ctrl='topics' type_id=$item.type_id ]-->" title="<!--[pnml name='_INNOFORUM_USER_LIST_TOPICS_TYPEGO']--><!--[get_topic_type type_id=$item.type_id]-->"><!--[get_topic_type type_id=$item.type_id]--></a>&nbsp;>
              <a href="<!--[pnmodurl modname='InnoForum' func='list' ctrl='topics' category_id=$category_id ]-->" title="<!--[pnml name='_INNOFORUM_USER_LIST_TOPICS_SUBCATGO']--><!--[$category]-->"><!--[$category]--></a>&nbsp;>
              <a href="<!--[pnmodurl modname='InnoForum' func='list' ctrl='topics' category_id=$category_id subcategory_id=$subcategory_id  ]-->" title="<!--[pnml name='_INNOFORUM_USER_LIST_TOPICS_SUBCATGO']--><!--[$subcategory]-->"><!--[$subcategory]--></a>
            </td>
          </tr>
          <tr class="text_9 text_dgray" valign="bottom">  
            <td>                          
              <img src="<!--[modulepath]-->/pnimages/38.png" width="16px" height="16px" align="absmiddle" alt="เจ้าของประกาศ"/>
              <a href="<!--[pnmodurl modname='InnoForum' func='list' ctrl='topics' user_id=$item.cr_uid]-->" title="<!--[pnml name='_INNOFORUM_USER_LIST_TOPICS_MyallTopic']-->&nbsp;<!--[$item.name]-->">
              <!--[$item.name]-->
              </a>  
            </td> 
            <td class="text_right"> 
              <img src="<!--[modulepath]-->/pnimages/calendar_view_day.png" width="16px" height="16px" align="absmiddle" alt="วันที่ลงประกาศ" title="วันที่ลงประกาศ"/>
                &nbsp;<!--[$item.cr_date|date_format:"%d/%m/%Y"]--> 
            </td>
            <td width="50px" align="right">
              <!--[$item.count_post]-->&nbsp;<img src="<!--[modulepath]-->/pnimages/comments.png" width="16px" height="16px" align="absmiddle" alt="จำนวนคนตอบ" title="จำนวนคนตอบ"/>
            </td>
            <td width="65px" align="right">    
              <!--[$item.count_view]-->&nbsp;<img src="<!--[modulepath]-->/pnimages/monitor.png" width="16px" height="16px" align="absmiddle" alt="จำนวนคนดู" title="จำนวนคนดู"/>
            </td>
          </tr>
        </table>
      </td>
    </tr>
  <!--[/foreach]-->   
</table>
<!-- end Template -->
<!--[if $pagetype neq 'home']-->
    </td>
  </tr>
</table>
<div style="width:99%">
				<!--[innopager  show=page												
                								img_prev="modules/InnoForum/pnimages/back.png"
												img_next="modules/InnoForum/pnimages/next.png"
												rowcount=$pager.numitems 
												limit=$pager.itemsperpage 
												posvar=startnum 
												shift=0
												request_uri=$smarty.server.REQUEST_URI						
												
				]-->
</div>
<br />

<br />
</div>
<!--[else]-->
<div align='right'>
  <a href="<!--[pnmodurl modname='InnoForum' func='list' ctrl='Topics']-->">
  <img width="260px" height="48px" 
  title="<!--[pnml name='_INNOFORUM_USER_LIST_TOPICS_MEMBERALL']-->"
  src="<!--[modulepath]-->/pnimages/truck_green.gif" align='absmiddle' >
  </a>
</div>
<!--[/if]-->